#ifndef CURRENT_STATUS_SELECTOR_H
#define CURRENT_STATUS_SELECTOR_H

#include <QWidget>

namespace Ui {
class DropSelector;
}

class DropSelector : public QWidget
{
    Q_OBJECT

public:
    explicit DropSelector(QWidget *parent = nullptr);
    ~DropSelector();
    void setTriangleInfo(int start, int width, int height);
    void setItems(QStringList items);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    void initEvents();
    void btnClicked();

signals:
    void itemSelected(QString text);

private:
    Ui::DropSelector *ui;
    int m_triangleStart;
    int m_triangleWidth;
    int m_triangleHeight;
};

#endif // CURRENT_STATUS_SELECTOR_H
